package net.thxjj.adminServer.entity.aep;

public class EventBean implements Comparable<EventBean>{

    private long score;
    private long timestamp;

    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        this.score = score;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public int compareTo(EventBean eventBean) {
        return (int) (this.timestamp - eventBean.getTimestamp()); // 根据时间升序排列，降序修改相减顺序即可
    }
}
